-check $004C and how to change it
-also check the $3200 area and how to add stuff to that


Current problems need to fix:
-When it increases more than $10, the SBC #$0010 doesn't take care of it.
-Still have to look into the byte shifting routine thing.




Extras:
The one at the end (whatever)
The sub table (2201768)
The A0 table (1887395)
The early stuff (105943)


The example text:
Pointer to the name table is c6:AB79
Pointer to text table is c6:F1BF


OK, so it seems A0 is always preceding the name definition. That makes things
fairly easy to do with a program, but I'm not sure how accurate the results
will be. I will check.

C7:9FC4 = names pointer table. Maybe i'll just have it load from a file
however.

81:9872 = name byte 24-bit pointer table.

81:9A25 = dialogue strings 24-bit pointer table. I hope there are enough!


OK....
First loads up, looks at first byte.
Checks to see if it's #$0009
if it is it starts the whole shebang (it's a text pointer thingy)

Checks next byte.
next byte = $20...what does it do? (at ACF6)
I dunno, stores it in $0D06, dunno what it uses from there
Then it goes to the next byte...

82/A593 - it's looking for A0,B0,C0,D0,E0

A0/B0 loads up the next byte then returns
Dx uses x as the byte
Ex is a jump table


For some reason, it's usually a #$C0 and then a byte saying which person it
is...
Time to check it out.



$82:A148 in the routine loads it twice, setting it up for the next string
after a page flip. (it's loading a 16-bit string address)! This immediately
follows the name.


$0D54 = the big kahuna byte, offset from the pointer...
the pointer number is in 0D6C, it's from a table at $9xxx.


CFA1 gets called form a jump table, doesn't tell you anything.
Where does 0D20 get loaded from?
From CC14, loops to load 0D20,x. Where does it get values from?
CC0A: JSR $A4B2

A4B2:



A114 - from $0D6C, get pointer from 24bit table at 01/9872, and load a byte.

CFA1:LDA $0D20, JSR $CF07





Find routine that gets the tile to use!
In order to do that, find where it takes that value and gets the font.
Transfers font FROM #$C000 to C200,x (vram i think)


$C5:F20C = in the middle of some text block

18000h (18200h with header) - [$83:8000] is the look up table for which byte
corresponds with the font.

2196A8h (2198A8h with header) - some other kind of table (E8-EF)

1CCAA3h (1CCCA3h with header) other table (A0-E7)


WHAT THE HELL IS $B6???!@?#$

F9DB F5BA - Shiori's kanji

c7:something = names table
